package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.entity.CommonEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 * 产品类型表
 * </p>
 *
 * @author liangjiuqing
 * @since 2024-09-25 15:04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@TableName("t_prod_type")
@ApiModel(value = "TProdType对象", description = "产品类型表")
public class TProdType extends CommonEntity {

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("名称")
    @NotBlank(message = "名称不能为空")
    @TableField("name")
    private String name;

    @ApiModelProperty("code")
    @NotBlank(message = "code不能为空")
    @TableField("code")
    private String code;
}
